<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="eaiJobLogList.heading" />

<content tag="buttons">
	<probiz:iconBtn btnType="delete" onclick="return fnDoMultiDelete(this);" />
	
</content>
<probiz:ui_leftMenu>
	<form method="post" action="${ctxPath}/system/eaiJobLog.html">
	    <div class="sidebar-left">
			<probiz:ui_tabs tabsId="left_menu_tabs"/>
		    <div class="top" id="left_menu_tabs">
			    <ul>
					
				</ul><br>
			</div>
			<search:searchBox>
				<div class="title"><fmt:message key="eaiJobLog.jobName"/></div>
				<div class="content">
					<select name="COL@s.jobName@String@EQ" id="COL@s.jobName@String@EQ" style="width:200px">
						<option value=""></option>
						<c:forEach var="item" items="${groupMap}">
							<optgroup label="<fmt:message key="scheduler.group.${item.key}"/>">
								<c:forEach var="groupDotNameKey" items="${item.value}">
									<c:set var="groupDotNameValue"><fmt:message key="${groupDotNameKey}"/></c:set>
									<option value="${groupDotNameValue}" <c:if test="${groupDotNameValue eq param['COL@s.jobName@String@EQ']}">selected=\"true\"</c:if>>${groupDotNameValue}</option>
								</c:forEach>
							</optgroup>
						</c:forEach>
					</select>
				</div>
			</search:searchBox>
		</div>
	</form>
</probiz:ui_leftMenu>
<form class="mainForm" name="eaiJobLogListForm" method="post" action="${ctxPath}/system/eaiJobLog.html">
	<!--listing box start-->
	<!--editURLPath is used in TblDecorator-->
	<c:set var="editURLPath" value="/system/eaiJobLog.html?doAction=edit&from=list" scope="page" />
	<div class="data">
		<c:set var="checkAll"><input type="checkbox" name="allbox" onclick="checkAll(this.form)" class="checkbox"/></c:set>
		<display:table name="${eaiJobLogList}" cellspacing="0" cellpadding="0" uid="eaiJobLogItem"
			class="list_table" export="false" requestURI="">
			<display:column style="width: 3%" title="${checkAll}" media="html">
				<input type="checkbox" name="multiIds" value="${eaiJobLogItem.eaiJobLogId}" class="checkbox" title="${eaiJobLogItem.eaiJobLogName}"/>
			</display:column>
			<display:column style="width: 15%" sortable="false" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="eaiJobLog.jobExecuteTime">
        		<fmt:formatDate value="${eaiJobLogItem.jobExecuteTime}" pattern="yyyy-MM-dd HH:mm:ss" />
        	</display:column>
		    <display:column style="width: 10%" property="jobName" sortable="false" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="eaiJobLog.jobName"/>
		    <display:column style="width: 10%" sortable="false" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="eaiJobLog.status">
        		<c:choose>
        			<c:when test="${eaiJobLogItem.status eq 1}"><fmt:message key="eaiJobLog.status.success"/></c:when>
        			<c:when test="${eaiJobLogItem.status eq 0}"><span style="color:red"><fmt:message key="eaiJobLog.status.failed"/></span></c:when>
        		</c:choose>
        	</display:column>
		    <display:column property="errorMessage" sortable="false" headerClass="data-table-title"
        		decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="eaiJobLog.errorMessage"/>
		</display:table>
		<%@include file="/common/pagingOnly.jsp"%>
	</div>
</form>
<script type="text/javascript">
highlightTableRows("eaiJobLogItem");
</script>